<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <p>catch用来处理失败状态的回调</p>
    <script>
        let p1 = new Promise((resolve, reject) => {
            reject({ point: 59 })
        })
        p1
        .then(res => {
            console.log(res);
        })
        .catch(err => {
            console.log(err);
        })
        // then处理成功 catch处理失败
    </script>
</body>

</html>